/*
 * @Description: 病虫害告警
 */
import zhreq from "@/api/axios";
export default {
  /**
     * @description: 获取表格
     */
  getlist(params) {
    return zhreq.post("/v3/patrol/insectAlarm/queryPageList", {
      ...params
    });
  },
  /**
     * @description: 修改信息--处理告警
     */
  editlist(editpar) {
    return zhreq.post("/v3/patrol/insectAlarm/edit", {
      ...editpar
    });
  },
  /**
  * @description: 修改信息--处理告警
  */
  editByAlarmlist(editpar) {
    return zhreq.post("/v3/patrol/insectAlarm/editByAlarm", {
      ...editpar
    });
  },
  /**
   * @description: 条件查询批次
   * @param {Object}  *
   */
  getallbatchList(params) {
    return zhreq.post('/v3/batch/productionBatch/queryByCondition', {
      farmingTypeNo: sessionStorage.getItem("farmingTypeNo"),
      organizationNo: sessionStorage.getItem("organizationNo"),
      ...params
      // status: 0
    });
  },
  addlist(editpar) {
    return zhreq.post("/v3/patrol/insectAlarm/add", {
      ...editpar,
      organizationNo: sessionStorage.getItem("organizationNo")
    });
  },
  dellist(editpar) {
    return zhreq.get("/v3/patrol/insectAlarm/del?insectAlarmId=" + editpar);
  }
}
